<!-- Copyright 2017 Capital One Services, LLC and Bitwise, Inc.
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
 http://www.apache.org/licenses/LICENSE-2.0
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License. -->
 
<!doctype html>
<html>
<head>
	<title>Max</title>
	<link rel="stylesheet" type="text/css" href="../../css/style.css">
</head>
<body>
<p><span class="header-1">Max</span></p>
<p><span>The max function calculates the maximum value for the specified field within the group. This function requires following inputs:</span><p>
<ul>
	<li><p><span>Key fields: The key fields for aggregation. This information is already provided using the <a href="../../Components/transform/Aggregate_Properties.html#key_fields">key fields</a> option on aggregate properties window.</span></p></li>
	<li><p><span>Input field name: The input field whose maximum value within the group is to be found. This information is already provided using the <a href="../../Components/transform/Aggregate_Operation_Editor.html#operation_input_fields">operation input fields</a> option on aggregate operation editor window.</span></p>
		<p><span><b>Note</b>: Input field supports all comparable data types. All numerical data types as well as date, time, string etc. data types are supported. In case of string, lexicographical comparison is implemented. The comparison is based on the Unicode value of each character in the strings.</span></p>
	</li>
	<li><p><span>Output field name: The field which stores the maximum value of the input field within the group. This information is already provided using the <a href="../../Components/transform/Aggregate_Operation_Editor.html#operation_output_fields">operation output fields</a> option on aggregate operation editor window.</span></p>
		<p><span><b>Note</b>: The data type of output field is same as that of input field.</span></p>
	</li>
</ul>
</body>	